/*详情页*/
.details{
  display: flex;
  flex-direction: column;
  .content{
    padding-top: 20px;
    margin: 0 auto;
    .head{
      display: inline-flex;
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
      .body{
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: wrap;
        margin: 0px auto 0px auto;
        &>div{
          display: inline-flex;
          flex-direction: row;
          justify-content: flex-start;
          padding: 10px;
          width: 100%;
          border: 1px solid #e4ecf3;
          &:hover {
            background: #fff;
            box-shadow: #ccc 1px 1px 8px;
            img {
              transform: scale(1.1);
              opacity: 1
            }
          }
          .left{
            max-height: 200px;
            overflow: hidden;
            img{
              max-width: 300px;
              -moz-transition: all .5s ease;
              -webkit-transition: all .5s ease;
              -o-transition: all .5s ease;
              transition: all 0.5s;
              opacity: .9;
              min-height: 180px;
            }
          }
          .right{
            display: inline-flex;
            flex-direction: column;
            justify-content: space-between;
            margin-left: 20px;
            padding: 10px 20px;
            h1{
              font-size: 16px;
            }
            h2{
              font-size: 15px;
            }
            .info{
              span{
                padding: 3px 5px 3px 0px;
                margin-right: 20px;
              }
            }
            .tag{
              span{
                margin-right: 10px;
              }
              a{
                position: relative;
                margin-right: 10px;
                padding-left: 10px;
                &:after{
                  position: absolute;
                  content: "";
                  width: 3px;
                  height: 3px;
                  background: #EB6841;
                  left: 0;
                  top: 8px;
                }
                &:hover{
                  color: #4DB6AC;
                }
              }
            }
            .more{
              width: 100%;
              display: inline-flex;
              flex-direction: row;
              justify-content: space-between;
              padding-right: 20px;
              &>div:first-child{
                span{
                  padding: 3px 5px 3px 0px;
                  margin-right: 10px;
                }
              }
              .moreText{
                color: #4DB6AC;
              }
            }
          }
        }
      }
    }
    /*内容区*/
    &>.body{
      margin-top: 20px;
      padding: 10px 20px;
      border: 1px solid #e4ecf3;
      img{
        max-width: 100%!important;
      }
      a{
        color: #57ded3;
      }
      p {
        line-height: 24px;
        padding: 10px 0;
        text-indent: 30px;
      }
      ul,ol{
        padding: inherit;
        margin: auto auto auto 35px;
        li{
          list-style: inherit;
        }
      }
      blockquote {
        color: #6a737d;
        border-left: 0.25em solid #dfe2e5;
        margin: 15px auto 15px 35px;
      }
    }
    /*随机图文*/
    .random{
      margin: 20px auto 20px auto;
      display: flex;
      flex-direction: column;
      &>div{
        &>h2{
          width: calc(100% - 30px);
          margin: 0 auto;
          display: flex;
        }
        /*tab 内容 方块布局*/
        .body{
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          flex-wrap: wrap;
          margin: 30px auto 0px auto;
          &>div{
            background-color: #fff;
            margin-bottom: 30px;
            padding-left: 15px;
            padding-right: 15px;
            display: inline-flex;
            a{
              display: inline-flex;
              flex-direction: column;
              justify-content: space-between;
              border-radius: 4px;
              border: 1px solid #e4ecf3;
              padding: 10px;
              &:hover {
                transform: translateY(-6px);
                -webkit-transform: translateY(-6px);
                -moz-transform: translateY(-6px);
                -webkit-box-shadow: 0 26px 40px -24px rgba(0,36,100,0.3);
                -moz-box-shadow: 0 26px 40px -24px rgba(0,36,100,0.3);
                box-shadow: 0 26px 40px -24px rgba(0,36,100,0.3);
                -webkit-transition: all 0.3s ease;
                -moz-transition: all 0.3s ease;
                -o-transition: all 0.3s ease;
                transition: all 0.3s ease;
              }
              img{
                width: 100%;
              }
              h1{
                font-size: 15px;
                margin-top: 10px;
              }
              p{
                margin: 10px 0;
              }
              &>div:last-child{
                display: inline-flex;
                flex-direction: row;
                justify-content: space-between;
                align-items: center;
                .more{
                  color: #4DB6AC;
                }
              }
            }
          }
        }
      }
    }
  }
  /*点赞*/
  .diggit {
    display: block;
    width: 160px;
    margin: 20px auto;
    background: #ff5501;
    cursor: pointer;
    color: #fff;
    box-shadow: 1px 2px 6px 0px rgba(0,0,0,.2);
    border-radius: 3px;
    line-height: 40px;
    text-align: center;
  }
  /*评论区*/
  .pinglun{
    margin: 10px 0;
    display: block;
    &>ul{
      display: flex;
      li{
        margin-bottom: 10px;
        &>div:nth-child(1){
          img{
            height: 45px;
            width: 45px;
          }
          &>div{
            padding-left: 10px;
            span:first-child{
              color: #01AAED;
            }
            span:last-child{
              color: #999;
            }
          }
        }
        &>div:nth-child(2){
          padding: 10px 0px 10px 50px;
          align-items: flex-start;
          .userName{
            color: #01AAED;
          }
        }
        &>div:nth-child(3){
          user-select: none;
          &>span{
            cursor: pointer;
            margin-right: 15px;
            &>span:first-child{
              display: block;
              width: 24px;
              height: 24px;
            }
            &:hover{
              color: #CC0000;
            }
          }
          &>span:first-child{
            span:first-child{
              background-image: url("");
            }
            &:hover{
              span:first-child{
                background-image: url("");
              }
            }
          }
          &>span:last-child{
            span:first-child{
              background-image: url("");
            }
            &:hover{
              span:first-child{
                background-image: url("");
              }
            }
          }
        }
      }
    }
    /*富文本编辑*/
    #edit{
      margin-top: 10px;
      height: 180px;
      &>div:first-child{
        border: 1px solid #e6e6e6!important;
        border-radius: 2px 2px 0 0!important;
        background-color: #FBFBFB!important;
        &>div{
          padding: 10px 15px!important;
          &>i{
            color: #009688 !important;
          }
          &:hover{
            &>i{
              color: #5DB276 !important;
            }
          }
        }
      }
      &>div:last-child{
        border: 1px solid #e6e6e6!important;
        height: calc(100% - 35px)!important;
      }
    }
  }
}
